package com.xrit.sunnyday.service;

import com.github.pagehelper.PageInfo;
import com.xrit.sunnyday.entity.QueryPageBean;
import com.xrit.sunnyday.exception.SunnydayException;
import com.xrit.sunnyday.pojo.Setmeal;

import java.util.List;
import java.util.Map;

public interface SetMealService {
    PageInfo<Setmeal> findPage(QueryPageBean queryPageBean);

    void deleteById(Integer id)throws SunnydayException;

    void add(Setmeal setmeal, Integer[] checkgroupIds);

    Setmeal findById(Integer id);

    Integer[] findSetMealAndCheckGroup(Integer id);

    void update(Setmeal setmeal, Integer[] checkgroupIds);

    List<String> findImgs();

    /* 查询套餐*/
    List<Setmeal> findAll();

   /* 查询套餐详情*/
    Setmeal findDetailById(int id);

//    查询setmeal饼状图
    List<Map<String, Object>> getSetmealReport();

}
